package edu.chen.service;

import edu.chen.entity.Lease;

import java.util.List;

public interface LeaseService {

    /**
     * 租借书本
     * @param book_id
     * @param student_id
     * @return
     */
    Lease leaseBook(int book_id, int student_id);


    /**
     * 归还书本
     * @param book_id
     * @param student_id
     * @return
     */
    void returnBook(int book_id, int student_id);

    /**
     * 根据student_id获取借阅信息
     * @param student_id
     * @return
     */
    List<Lease> getLeaseByStudentId(int student_id);
}
